<?php

class Rating extends CWidget {

	public $rate;
	public $cssFile;
	var $assets = '';

	public function registerClientScript(){
		$cssFile = dirname(__FILE__).DIRECTORY_SEPARATOR."css/rating.css";
		$publishedCss = Yii::app()->assetManager->publish($cssFile);
		Yii::app()->clientScript->registerCssFile($publishedCss);
		
		
	}
    public function init() {
        //$this->rate=0;
        $assetsDir = dirname(__FILE__).'/assets';
        $this->registerClientScript();
        //
    }
    
    public function run(){
    	$this->render('rating',
    				array(
						'rate'=>$this->rate,
					)
		);
    }
    
}

?>
